<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<div id="rightContent">
	<h3>Create Product</h3>
	<form:form action="" method="POST" commandName="product" enctype="multipart/form-data">
		<table width="95%">
			<tr>
				<td><b><form:label path="name">Category</form:label></b></td>
				<td><form:select path="category.id" id="category"
						name="category">
						<c:if test="${!empty listcategory }">
							<c:forEach items="${listcategory}" var="category">
								<form:option value="${category.id }">${category.name }</form:option>
							</c:forEach>
						</c:if>
					</form:select></td>
			</tr>
			<tr>
				<td><b><form:label path="name">Product Name</form:label></b></td>
				<td><form:input type="text" path="name" class="sedang" /></td>
			</tr>
			<tr>
				<td><b><form:label path="price">Price</form:label></b></td>
				<td><form:input type="text" path="price" class="sedang" /></td>
			</tr>
			<tr>
				<td><form:label path="kind">Product Type</form:label></td>
				<td><form:radiobutton path="kind" value="1" />New <form:radiobutton
						path="kind" value="2" />Feature</td>
			</tr>
			<tr>
				<td><label class="control-label" for="filebutton">Picture</label></td>
				<td>
					<form:errors path="*" cssStyle="color : red;" />
				${errors}
				<form:input id="filebutton" name="filebutton" class="input-file"
					type="file" path="file" />
				</td>
			</tr>
			<tr>
				<td><b><form:label path="description">Description</form:label></b></td>
				<td><form:textarea rows="7" cols="10" type="text"
						path="description" class="sedang" /></td>
			</tr>
			<tr>
				<td><b><form:label path="quantity">Quantity</form:label></b></td>
				<td><form:textarea rows="7" cols="10" type="text"
						path="quantity" class="sedang" /></td>
			</tr>

			<tr>
				<td></td>
				<td><input type="submit" class="button" value="Add Product">
					<input type="reset" class="button" value="Reset"></td>
			</tr>
		</table>
	</form:form>
</div>